package com.agan.aganjavaspyder.crawler.un_demo;

import com.geccocrawler.gecco.GeccoEngine;
import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author agan
 * @ClassName StartCtPhone
 * @Description
 * @Date 2020/10/15 9:11 下午
 **/
@Setter
@Getter
@Gecco(matchUrl="http://s.10010.com/SearchApp/chseSearchList/refresh?{startPage}",pipelines = {
        "consolePipeline", "UNSecondPhonePipeline" })
public class SecendCtPhone implements HtmlBean {


    @RequestParameter("startPage")
    private int startPage;

    @Text
    @HtmlField(cssPath = "#selectOtherList > div.searchResultInfor > label.cOrange")
    private int totleSize;

    @Text
    @HtmlField(cssPath = "#selectOtherList > div.searchResultInfor > label.cBlue")
    private String keyWord;



    @Href
    @HtmlField(cssPath="#goodsList > ul > li.goodsLi > a")
    private List<String> resultText;

}
